package qmm.entity;

public class Cart {
	private int id;
	private int goodsId;
	private int num;
	private int userId;
	public Cart() {
		super();
	}
	public Cart(int id, int goodsId, int num, int userId) {
		super();
		this.id = id;
		this.goodsId = goodsId;
		this.num = num;
		this.userId = userId;
	}
	@Override
	public String toString() {
		return "Cart [id=" + id + ", goodsId=" + goodsId + ", num=" + num + ", userId=" + userId + "]";
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getGoodsId() {
		return goodsId;
	}
	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	
	
}
